# coding: utf8
import os
cwd = os.getcwd()
format=MARKMIN
application_controller = APPLICATION_CONTROLER
plugin_name = PLUGIN_NAME


def index():
#    response.content_title = T('plugin_name')
#    response.content_subtitle = T('Change the sites displayed language')

    return dict(message='testing 123')

def about():
    """
    Displays app_name/plugin_name/static/ABOUT
    """
    about_path = os.path.join(cwd,'applications',request.application, 'static', plugin_name, 'ABOUT')
    about_body=open(about_path,'r').read()
    body = MARKMIN(about_body)
    return dict(body=body)
 
def license():
    """
    Displays app_name/plugin_name/static/LICENSE
    """
    license_path = os.path.join(cwd,'applications',request.application, 'static', plugin_name, 'LICENSE')
    license_body=open(license_path,'r').read()
    body = MARKMIN(license_body)
    return dict(body=body)
    
def universal_cake():
    """
    Displays app_name/plugin_name/static/UNIVERSAL_CAKE
    """
    universal_cake_path = os.path.join(cwd,'applications',request.application, 'static', plugin_name,'UNIVERSAL_CAKE')
    universal_cake_body=open(universal_cake_path,'r').read()
    body = MARKMIN(universal_cake_body)
    return dict(body=body)

def voice_of_access():
    """
    Displays app_name/plugin_name/static/VOICE_OF_ACCESS
    """
    voice_of_access_path = os.path.join(cwd,'applications',request.application, 'static', plugin_name, 'VOICE_OF_ACCESS')
    voice_of_access_body=open(voice_of_access_path,'r').read()
    body = MARKMIN(voice_of_access_body)
    return dict(body=body)
